package com.atguigu.vod;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author He Wentao
 * @since 2022/9/5 23:42
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
// 配置包扫描规则，以下这个路径中，会将 swagger 那些工具，全部扫描到，并且注册到容器中去
@ComponentScan(basePackages = {"com.atguigu"})
@EnableDiscoveryClient  //nacos服务发现注解
public class VodServiceMain {
    public static void main(String[] args) {
        SpringApplication.run(VodServiceMain.class,args);
    }

}
